package com.liuwei.msmall.product.feign;

import com.liuwei.msmall.common.dto.es.EsSkuModelDTO;
import com.liuwei.msmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Classname EsFeginService
 * @Date 2021/4/10 5:10 下午
 * @Created by llww
 */
@FeignClient("msmall-search-service")
public interface EsFeginService {
    @PostMapping("/es/product/save")
    R savePoduct(@RequestBody List<EsSkuModelDTO> esSkuModels);
    @GetMapping("/es/product/delete/{spuId}")
    R deleteProduct(@PathVariable("spuId") Long spuId);
}
